package com.bootdo.blog.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.blog.dao.PlantingMapper;
import com.bootdo.blog.domain.PlantingDO;
import com.bootdo.blog.service.PlantingService;



@Service
public class PlantingServiceImpl implements PlantingService {
	@Autowired
	private PlantingMapper plantingMapper;
	
	@Override
	public PlantingDO get(Integer plantId){
		return plantingMapper.get(plantId);
	}
	
	@Override
	public List<PlantingDO> list(Map<String, Object> map){
		return plantingMapper.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return plantingMapper.count(map);
	}
	
	@Override
	public int save(PlantingDO planting){
		return plantingMapper.save(planting);
	}
	
	@Override
	public int update(PlantingDO planting){
		return plantingMapper.update(planting);
	}
	
	@Override
	public int remove(Integer plantId){
		return plantingMapper.remove(plantId);
	}
	
	@Override
	public int batchRemove(Integer[] plantIds){
		return plantingMapper.batchRemove(plantIds);
	}
	
}
